<template>
	<view>
		<view v-if="number == 1">
			<dortor/>
		</view>
		<view v-else>
			<indexy/>
		</view>
	</view>
</template>

<script>
	import dortor from '@/pages/index/dortorIndex.vue'
	import indexy from '@/pages/index/index.vue'
	export default{
		components:{
			indexy,
			dortor
		},
		data(){
			return{
				number:1
			}
		},
		onLoad(e){
			this.number = uni.getStorageSync('number')
			console.log(this.number);
			if(this.number == 1){
				uni.setTabBarItem({
				  index: 1,
				  text: '消息',
				  iconPath: '/static/home/u188.png',
				  selectedIconPath: '/static/home/u188.png',
				  pagePath:'/pages/message/index'
				})
				uni.setTabBarItem({
				  index: 2,
				  text: '问诊',
				  iconPath: '/static/home/u2397.png',
				  selectedIconPath: '/static/home/u2397.png',
				  pagePath:'/pages/index/wz'
				})
				uni.setTabBarItem({
				  index: 3,
				  text: '患者',
				  iconPath: '/static/home/u2425.png',
				  selectedIconPath: '/static/home/u2425.png',
				  pagePath:'/pages/index/huanzhe'
				})
				
			}
		}
	}
</script>

<style>
	
	
</style>